<div class="dish">

    <div class="addDish">
        <a href="addDish1.html">
            <button type="button"
                    class="btn btn-default btn-lg">添加菜品
            </button>
        </a>
    </div>

    <div id=dishDiv class="table-si">


    <table id="dishTable" class="table table-hover table1">
        <tr>
            <td>图片</td>
            <td>菜品</td>
            <td>价格</td>
            <td>删除</td>
            <td>下架</td>
            <td>推荐</td>
        </tr>
        <tr ng-repeat="d in dishList">
            <td><img src="http://10.222.232.168:83/img/{{d.dicon}}" class="dish_img"></td>
            <td>{{d.dname}}</td>
            <td>{{d.price}} </td>
            <td><input type="button"  id="deleteBtn{{d._id}}" class="btn btn-warning" value="删除"
                       ng-click="deleteDish($index)"></td>
            <td><input ng-disabled="{true : true, false: false}[d.recommend== -1]" id="unBtn{{d._id}}"  type="button" class="btn btn-info" value="下架"
                       ng-click="undercarriageDish($index)"></td>
            <td><input ng-disabled="{true : true, false: false}[d.recommend!=0]" id="recommendBtn{{d._id}}" type="button" class="btn btn-success"
                       value="推荐" ng-click="recommendDish($index)"></td>

        </tr>

    </table>
    </div>
</div>